package com.fr.web;
import java.util.List;
import java.util.Map;
import com.fr.dao.CarouselsDao;
import com.fr.model.Carousels;
import net.sf.json.JSONArray;

@SuppressWarnings("serial")
public class GetCarousels extends JsonServlet {
  @Override
  public String dealInput(Map<String, String[]> input) {
    CarouselsDao carouselsDao = new CarouselsDao();
    List<Carousels> carouselss=carouselsDao.getAll();
    return JSONArray.fromObject(carouselss).toString();
  }
}